import request from '@/utils/request'

// 发布商品评价
export function postOrderComment(data) {
    return request({
        url: '/order/item/comment',
        method: 'post',
        data: data
    })
}

// 商品评论回复列表
export function listComment(query) {
    return request({
        url: '/product/spuComment',
        method: 'get',
        params: query
    })
}

// 发布评论
export function addReplyComment(data) {
    return request({
        url: '/product/spuCommentReply',
        method: 'post',
        data: data
    })
}